<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : standings.xsl
    Created on : 2010-04-27, 17:23
    Author     : Football-Statistics Team
    Description: season matches table transformation
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" omit-xml-declaration="yes" media-type="html/text"/>
    <xsl:param name="url"/>
    <xsl:param name="team"/>
    <xsl:param name="wins"/>
    <xsl:param name="draws"/>
    <xsl:param name="losses"/>
    <xsl:param name="score"/>
    <xsl:param name="points"/>
    <xsl:param name="matches"/>
    <xsl:template match="/standings">
        <table id="sortTable" class="tablesorter">
        <thead>
          <tr>
            <th><img src="images/team.png" alt=""/> <xsl:value-of select="$team"/></th>
            <th><xsl:value-of select="$matches"/></th>
            <th><xsl:value-of select="$wins"/></th>
            <th><xsl:value-of select="$draws"/></th>
            <th><xsl:value-of select="$losses"/></th>
            <th><xsl:value-of select="$score"/></th>
            <th><xsl:value-of select="$points"/></th>
          </tr>
        </thead>
        <tbody>  
        <xsl:for-each select="team">
            <tr>
                <td><xsl:value-of select="name"/></td>
                <td><xsl:value-of select="games"/></td>
                <td style="text-align:center;"><xsl:value-of select="wins"/></td>
                <td style="text-align:center;"><xsl:value-of select="draws"/></td>
                <td style="text-align:center;"><xsl:value-of select="losses"/></td>
                <td style="text-align:center;"><xsl:value-of select="score"/></td>
                <td style="text-align:center;"><xsl:value-of select="points"/></td>
            </tr>
        </xsl:for-each>
        </tbody>
        </table>
    </xsl:template>
</xsl:stylesheet>
